"""
为输入的十六进制字符串，添加空格。如123456 -> 12 34 56
"""


def HexStrAddSpace(HexStr):
    out_data = ''
    for i, s in enumerate(HexStr):
        if (i % 2 == 0):
            out_data += ' '
            out_data += s
        else:
            out_data += s
    return out_data.upper()


hexstr = "7B0A2020202273416C61726D43616D4368616E6E656C22203A202231222C0A2020202273416C61726D43616D494422203A20225448222C0A2020202273416C61726D43616D495022203A202231302E39302E32332E323235222C0A2020202273416C61726D495022203A2022222C0A2020202273416C61726D4E616D6522203A2022414955222C0A2020202273416C61726D50696322203A205B0A2020202020207B0A202020202020202020225069634C656E67746822203A2022313633303432222C0A2020202020202020202273416C61726D4F626A656374436F756E7422203A202231222C0A2020202020202020202273416C61726D4F626A6563747322203A205B0A2020202020202020202020207B0A20202020202020202020202020202022616C61726D737472696E6722203A2022E4BABAE59198222C0A202020202020202020202020202020226822203A2022313831222C0A202020202020202020202020202020226C61626C6522203A2022313030222C0A202020202020202020202020202020226C6576656C22203A202231222C0A202020202020202020202020202020226F626A6C61626C6522203A202230222C0A202020202020202020202020202020226F626A6E616D6522203A2022E4BABA222C0A202020202020202020202020202020227722203A20223735222C0A202020202020202020202020202020227822203A202231373936222C0A202020202020202020202020202020227922203A2022333330220A2020202020202020202020207D0A2020202020202020205D2C0A2020202020202020202273416C61726D5069635479706522203A20227A6F6F6D220A2020202020207D2C0A2020202020207B0A202020202020202020225069634C656E67746822203A2022313733333231222C0A2020202020202020202273416C61726D5069635479706522203A20226F726967696E220A2020202020207D0A2020205D2C0A2020202273416C61726D50726573657422203A202231222C0A2020202273416C61726D5072657365744E616D6522203A202231222C0A2020202273416C61726D5254535022203A2022222C0A2020202273416C61726D5479706522203A2022313030220A7D0AFFD8FFE000104A46494600010100000100010000FFDB004300100B0C0E0C0A100E0D0E1211101318281A181616183123251D283A333D3C3933383740485C4E404457453738506D51575F626768673E4D71797064785C656763FFDB0043011112121815182F1A1A2F634238426363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363FFC00011080438078003012200021101031101FFC4001F00000105010101010101000000000000000001020304050607"
HexStrWithSpace = HexStrAddSpace(hexstr)
print("\n", HexStrWithSpace, end='\n')